package com.ruoyi.system.service.impl;

import com.ruoyi.system.service.IHomepageService;
import com.ruoyi.system.service.ITProdInvService;
import com.ruoyi.system.service.ITProdRecordService;
import com.ruoyi.system.service.ITProdTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @Version 1.0.0
 * @Date 2024/10/19 23:30
 * @Author wux
 */
@Service
public class HomepageServiceImpl implements IHomepageService {
    @Autowired
    private ITProdTaskService prodTaskService;
    @Autowired
    private ITProdRecordService prodRecordService;
    @Autowired
    private ITProdInvService invService;
    @Override
    public List<Map<String,Object>> totalTask() {
        return prodTaskService.totalTaskByProdType();
    }

    @Override
    public List getInventory() {
        return invService.getInventory();
    }

    @Override
    public Map<String,Object> getTaskRecordByDay() {
        return prodRecordService.getTaskRecordByDay();
    }
}
